/*
 * Exploder
 * 
 * Tero Pyylampi (218437), Jussi Tuurinkoski (211594)
 *
 * Default menu layer for testing purposes
 */

#ifndef MENULAYER_H
#define MENULAYER_H

#include "cocos2d.h"
#include <vector>
#include <iostream>
#include <sstream>

class MenuScene;

class MenuLayer : public cocos2d::CCLayer
{
public:
	// default constructor
	MenuLayer( MenuScene *scene );
	// default destructor
	~MenuLayer();

	// initializes this layer
	void initLayer();
	// init level buttons
	void initLevelButtons();
	// update the layer
	virtual void update( cocos2d::ccTime dt );

	// exit button callback
	void exitButtonCallback( cocos2d::CCObject *pSender );
	// launch editor callback
	void launchEditorCallback( cocos2d::CCObject *pSender );
	// launch game callback
	void launchGameCallback( cocos2d::CCObject *pSender );

private:
	// master scene
	MenuScene *mMaster;

	// menu used
	cocos2d::CCMenu *mMainMenu;

	// unit sprite
	cocos2d::CCSprite *mMenuUnitSprite;

	// background sprite
	cocos2d::CCSprite *mBackground;
};

#endif